package o;

import android.content.res.ColorStateList;
import android.view.View;
import com.huawei.support.widget.HwSubTabWidget;
import java.lang.ref.WeakReference;

public class fmn extends SkinAttr {

    static final class c extends fkz<SkinAttr, ColorStateList> {
        private WeakReference<HwSubTabWidget> ˎ;

        public /* synthetic */ void ॱ(Object obj) {
            ˋ((ColorStateList) obj);
        }

        private c(HwSubTabWidget hwSubTabWidget) {
            this.ˎ = new WeakReference(hwSubTabWidget);
        }

        public void ˋ(ColorStateList colorStateList) {
            HwSubTabWidget hwSubTabWidget = (HwSubTabWidget) this.ˎ.get();
            if (hwSubTabWidget != null) {
                flc.ˊ(hwSubTabWidget, colorStateList);
            }
        }
    }

    public fmn() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwSubTabWidget) {
            HwSubTabWidget hwSubTabWidget = (HwSubTabWidget) view;
            if ("color_state_list".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "color_state_list";
                fks.ˎ(view.getContext(), this, new c(hwSubTabWidget)).ॱ(z);
            }
        }
    }
}
